<?php
require_once("lib.Stratosphere.test.php");

$s_command=$_POST['command'];
$s_key=$_POST['key'];
$s_value=$_POST['value'];

?>
<hr />
Last require:
<br />command:<?php print( _get_safe_HTML_str($s_command) ); ?>
<br />key    :<?php print( _get_safe_HTML_str($s_key) ); ?>
<br />value  :<?php print( _get_safe_HTML_str($s_value) ); ?>
<hr />
Last result:
<?php 
if($s_command=='get'){
	echo $myMemcache->get($s_key);
}elseif($s_command=='set'){
	$myMemcache->set($s_key,$s_value);
	echo "("._get_safe_HTML_str($s_key).","._get_safe_HTML_str($s_value).")";
}else{
	echo "unknow command";
}
?>
<hr />
<form method='POST'>
<input type='-hidden' name='platform' value="<?php print( _get_safe_HTML_str($DEF_ENV_PLATASSRV) ); ?>" />
<select name='command' ><option value='---' selected >---</option><option value='set' >set</option><option value='get' >get</option></select>
key:  <input type='text' name='key'   value="<?php print( _get_safe_HTML_str($s_key) ); ?>" />
value:<input type='text' name='value' value="<?php print( _get_safe_HTML_str($s_value) ); ?>" />
<input type='submit' value='Do it' />
</form>
<hr />
